package com.xuecheng.content.service;

import com.xuecheng.content.model.dto.CourseTeacherDto;
import com.xuecheng.content.model.po.CourseTeacher;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author 86150
* @description 针对表【course_teacher(课程-教师关系表)】的数据库操作Service
* @createDate 2023-07-11 20:26:12
*/
public interface CourseTeacherService extends IService<CourseTeacher> {
    /**
     * 查询课程老师信息
     * @param courseId 课程id
     * @return 课程老师信息
     */
    List<CourseTeacher> queryCourseTeacher(Long courseId);

    /**
     * 添加课程教师信息
     * @param companyId 机构id
     * @param courseTeacherDto 添加教师dto
     * @return 教师信息
     */
    CourseTeacher addCourseTeacher(Long companyId, CourseTeacherDto courseTeacherDto);

    /**
     * 修改课程教师信息
     * @param companyId 机构id
     * @param courseTeacherDto 修改教师dto
     * @return 教师信息
     */
    CourseTeacher modifyCourseTeacher(Long companyId,CourseTeacherDto courseTeacherDto);


    /**
     * 删除课程教师信息
     * @param companyId 机构id
     * @param courseId 课程id
     * @param id 教师id
     */
    void deleteCourseTeacher(Long companyId,Long courseId,Long id);
}
